<#include "../../page.ftl" />
<#assign security=JspTaglibs["/WEB-INF/security.tld"] />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>资源ID</th>
        <th>资源名称</th>
        <th>资源地址</th>
        <th>所属模块</th>
        <th>排序号</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if resourcesTable.rows??>
        <#list resourcesTable.rows as resource>
        <tr>
            <td><input name="ids" type="checkbox" value="${resource.id?c}"></td>
            <td>${resource.resourceId!''}</td>
            <td>${resource.resourceName!''}</td>
            <td>${resource.resourceUrl!''}</td>
            <td>${resource.moduleName!''}</td>
            <td>${resource.sortNo!''}</td>
            <td>${resource.remark!''}</td>
            <td>
                <@security.authorize ifAnyGranted="ROLE_RESOURCE_E">
                    <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${resource.id?c});"
                       title="编辑"><i class="fa fa-edit"></i></a>
                </@security.authorize>
            </td>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if resourcesTable??>
    <@page table=resourcesTable formId="search_resource_table"/>
</#if>